package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售明细对象 x_details
 * 
 * @author GGJ
 * @date 2024-05-13
 */
public class XDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售批次号 */
    private Long id;

    /** 仓库 */
    @Excel(name = "仓库")
    private String warehouse;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 采购方 */
    @Excel(name = "采购方")
    private String supplier;

    /** 销售时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purtime;

    /** 出货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrtime;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long purnum;

    /** 出库状态 */
    @Excel(name = "出库状态")
    private String input;

    /** 缺货 */
    @Excel(name = "缺货")
    private String x_short;

    /** 销售金额 */
    @Excel(name = "销售金额")
    private Long cost;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long retnum;

    /** 退货率 */
    @Excel(name = "退货率")
    private String retate;

    /** 销售人 */
    @Excel(name = "销售人")
    private String buyer;

    /** 销售主表ID */
    @Excel(name = "销售主表ID")
    private String zId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWarehouse(String warehouse) 
    {
        this.warehouse = warehouse;
    }

    public String getWarehouse() 
    {
        return warehouse;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setPurtime(Date purtime) 
    {
        this.purtime = purtime;
    }

    public Date getPurtime() 
    {
        return purtime;
    }
    public void setArrtime(Date arrtime) 
    {
        this.arrtime = arrtime;
    }

    public Date getArrtime() 
    {
        return arrtime;
    }
    public void setPurnum(Long purnum) 
    {
        this.purnum = purnum;
    }

    public Long getPurnum() 
    {
        return purnum;
    }
    public void setInput(String input) 
    {
        this.input = input;
    }

    public String getInput() 
    {
        return input;
    }
    public void setShort(String x_short)
    {
        this.x_short = x_short;
    }

    public String getShort() 
    {
        return x_short;
    }
    public void setCost(Long cost) 
    {
        this.cost = cost;
    }

    public Long getCost() 
    {
        return cost;
    }
    public void setRetnum(Long retnum) 
    {
        this.retnum = retnum;
    }

    public Long getRetnum() 
    {
        return retnum;
    }
    public void setRetate(String retate) 
    {
        this.retate = retate;
    }

    public String getRetate() 
    {
        return retate;
    }
    public void setBuyer(String buyer) 
    {
        this.buyer = buyer;
    }

    public String getBuyer() 
    {
        return buyer;
    }
    public void setzId(String zId) 
    {
        this.zId = zId;
    }

    public String getzId() 
    {
        return zId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warehouse", getWarehouse())
            .append("name", getName())
            .append("supplier", getSupplier())
            .append("purtime", getPurtime())
            .append("arrtime", getArrtime())
            .append("purnum", getPurnum())
            .append("input", getInput())
            .append("short", getShort())
            .append("cost", getCost())
            .append("retnum", getRetnum())
            .append("retate", getRetate())
            .append("buyer", getBuyer())
            .append("zId", getzId())
            .append("remark", getRemark())
            .toString();
    }
}
